//
//  SISSUserAccount.h
//  SISSAPP
//
//  Created by 优房网 on 2017/3/22.
//  Copyright © 2017年 优房网. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SISSUserAccount : NSObject

/// 用户名
@property (copy, nonatomic) NSString *userName;
/// name
@property (copy, nonatomic) NSString *name;
/// license_no
@property (copy, nonatomic) NSString *license_no;
/// idNo
@property (copy, nonatomic) NSString *idNo;
/// mobile
@property (copy, nonatomic) NSString *mobile;

/// 用户头像
@property (copy, nonatomic) NSString *portrait;
/// 中介星级
@property (assign, nonatomic) NSInteger starLevel;

/// 用户id
@property (copy, nonatomic) NSString *saId;
/// 分支机构id
@property (copy, nonatomic) NSString *sobId;
/// 机构id
@property (copy, nonatomic) NSString *soId;
/// 经纪人id
@property (copy, nonatomic) NSString *spId;
///
@property (copy, nonatomic) NSString *token_type;
/// 令牌
@property (copy, nonatomic) NSString *access_token;

/// code
@property (copy, nonatomic) NSString *code;
/// imAccount
@property (copy, nonatomic) NSString *imAccount;

/// 是否登陆
@property (assign, nonatomic) BOOL isLogin;


/// 单例
+ (instancetype)shared;


/// 存储用户信息
- (void)saveUserAcountInfoWithDict:(NSDictionary *)dict;


/// 读取存储在本地的用户信息
- (void)readUserAccountInfo;

@end


/*
 {
 result = 200;
	msg = SUCCESS;
	data = {
	sob_id = -1000;
	so_id = 8028;
	userName = 429006199008271223;
	id = 3196408206754816;
	code = 429006199008271223;
	sp_id = 3196673684505600;
	token = 5609b92768e232a505ba8141106e687aba2fe86c154c9426ef47fa98358275c2;
	name = 贾小进;
    }
 }
 */
